package com.ysd.dao;

import java.util.List;


import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import com.ysd.entity.Modules;

public interface modulesDao extends JpaRepository<Modules, Integer>, JpaSpecificationExecutor<Modules>{
	//根据id查询出儿子
	@Query(value="SELECT * from modules where mparentid=?1",nativeQuery = true)
	List<Modules> getChildren(Integer id);
}
